package com.seek.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: wml
 * @since: 2022/3/5 13:59
 */
@Component
@FeignClient(name = "service-order")
public interface OrderClient {

    // 根据课程 id 和用户 id 查询订单表中的订单状态
    @GetMapping("/eduorder/order/isBuyCourse/{courseId}")
    boolean isBuyCourse(@PathVariable("courseId") String courseId, @RequestParam("memberId") String memberId);
}
